package com.maycur.ctrip.service;

import com.maycur.ctrip.dto.ItineraryEntity;
import com.maycur.ctrip.dto.FetchCtripOrderRequest;
import com.maycur.ctrip.dto.OrderSearchCriteria;

import java.util.List;

/**
 * Created by JoeyXin on 6/23/16.
 */
public interface OrderService {

    List<ItineraryEntity> fetchOrdersFromCtrip(String entCode, FetchCtripOrderRequest searchOrderReq);

    List<String> listHotelOrderIdInDb(OrderSearchCriteria searchCriteria);

    List<String> listFlightOrderIdInDb(OrderSearchCriteria searchCriteria);

    List<String> listTrainOrderIdInDb(OrderSearchCriteria searchCriteria);

    boolean syncItineraryListToMaycur(String entCode, String userCode, List<ItineraryEntity> itineraryEntities);
}
